package controller

import (
	"github.com/gin-gonic/gin"
	"src/response"
	"src/services"
)

/*
@date : 2024/8/28 22:16
@author : mie
@desc:
*/

/**
获取钱包列表
*/

func UserWalletRoute(api *gin.RouterGroup) {
	api.GET("/user/wallet/list", func(c *gin.Context) {
		account := c.Query("account")
		uw, err := services.GetUserWallet(account)
		if err != nil {
			response.XFail(c, err.Error())
			return
		}
		response.Success(c, uw)
	})
}

/**
导入钱包
*/

func ImportUserWallet(api *gin.RouterGroup) {

}
